﻿using System.ComponentModel;

namespace YnabCsvConverter
{
   using System;
   using System.Collections.Generic;
   using System.Linq;
   using System.Text;
   using System.Windows;
   using System.Windows.Controls;
   using System.Windows.Data;
   using System.Windows.Documents;
   using System.Windows.Input;
   using System.Windows.Media;
   using System.Windows.Media.Imaging;
   using System.Windows.Shapes;

   /// <summary>
   /// Interaction logic for ConvertReportWindow.xaml
   /// </summary>
   public partial class ConvertReportWindow : Window
   {

      /// <summary>
      /// Initializes a new instance of the <see cref="ErrorWindow" /> class.
      /// </summary>
      public ConvertReportWindow()
      {
         InitializeComponent();
         DataContext = this;
      }
      
      /// <summary>
      /// Handles the ok click.
      /// </summary>
      /// <param name="sender">The sender.</param>
      /// <param name="e">The <see cref="RoutedEventArgs" /> instance containing the event data.</param>
      /// <exception cref="System.NotImplementedException"></exception>
      private void HandleOkClick(object sender, RoutedEventArgs e)
      {
         DialogResult = true;
      }

      /// <summary>
      /// Occurs when [property changed].
      /// </summary>
      public event PropertyChangedEventHandler PropertyChanged;

      /// <summary>
      /// Called when [property changed].
      /// </summary>
      /// <param name="propertyName">Name of the property.</param>
      protected virtual void OnPropertyChanged(string propertyName)
      {
         PropertyChangedEventHandler handler = PropertyChanged;
         if (handler != null)
         {
            handler(this, new PropertyChangedEventArgs(propertyName));
         }
      }

      /// <summary>
      /// Handles the window mouse down.
      /// </summary>
      /// <param name="sender">The sender.</param>
      /// <param name="e">The <see cref="MouseButtonEventArgs" /> instance containing the event data.</param>
      /// <exception cref="System.NotImplementedException"></exception>
      private void HandleWindowMouseDown(object sender, MouseButtonEventArgs e)
      {
         DragMove();
      }
   }
}
